
package ModelLayer;

import java.util.ArrayList;

/**
 * A drink object that is a subclass of product.
 * 31/05/2012
 * @author cbjerg
 * @version 0.1
 */
public class Drink extends Product {
	
	private ArrayList<Product> products;

	/**
	 * Creates an empty drink object and initialize the products collection.
	 */
	public Drink() {
		products = new ArrayList<Product>();
	}

	/**
	 * Creates a drink object and initialize the products collection.
	 * @param productName The name of the drink.
	 * @param productDescription The description of the drink.
	 * @param inStock The amount in stock of the drink.
	 * @param defaultPrice The defaultPrice of the drink.
	 * @param productType The productType of the drink. 
	 * @param minStock The minimum amount that should be in stock of the drink. 
	 */
	public Drink(String productName, String productDescription, int inStock,
			double defaultPrice, String productType, int minStock) {
		super(productName, productDescription, inStock, defaultPrice,
				productType, minStock);
		products = new ArrayList<Product>();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @return the products
	 */
	public ArrayList<Product> getProducts() {
		return products;
	}

	/**
	 * @param products the products to set
	 */
	public void setProducts(ArrayList<Product> products) {
		this.products = products;
	}
	
	

}
